package com.neko.seed.api.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonFormat;

@JsonFormat(shape = JsonFormat.Shape.NUMBER_INT)
public enum Switch {
  OFF(0, "禁用"),
  ON(1, "启用");
  @EnumValue
  private Integer type;
  private String value;

  Switch(Integer type, String value) {
      this.type = type;
      this.value = value;
  }

  public Integer getType() {
      return type;
  }

  public void setType(Integer type) {
      this.type = type;
  }

  public String getValue() {
      return value;
  }

  public void setValue(String value) {
      this.value = value;
  }
}
